package com.gaowl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gaowl.common.utils.PageUtils;
import com.gaowl.gulimall.product.entity.AttrEntity;
import com.gaowl.gulimall.product.vo.AttrGroupRelationVo;
import com.gaowl.gulimall.product.vo.AttrResponseVo;
import com.gaowl.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author gaowl
 * @email gaowl@stu.jiangnan.edu.cn
 * @date 2021-03-11 11:39:16
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponseVo getDetailedInfoById(Long attrId);

    void updateAttrVo(AttrVo attrVo);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    PageUtils getNoRelationAttr(Long attrGroupId, Map<String, Object> params);

    void deleteRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    void addRelation(AttrGroupRelationVo[] attrGroupRelationVo);
}

